package io.github.doc.config;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 配置文件对象
 *
 * @author ZH.Team
 * @version 1.0.0
 * @email "mailto:ZH.Team@zhxx.com"
 * @date 2025.01.04 14:02
 * @since y.y.y
 */
public class PluginSetting implements Serializable {

    /**
     * 基础信息
     */
    public final Map<String, String> config = new HashMap<>();


    /**
     * Add base config
     *
     * @param key   key
     * @param value value
     * @return the plugin setting
     * @since y.y.y
     */
    public PluginSetting addConfig(String key, String value) {
        config.put(key, value);
        return this;
    }

    /**
     * Gets base config *
     *
     * @param key key
     * @return the base config
     * @since y.y.y
     */
    public String getConfig(String key) {
        return config.get(key);
    }
}
